import os
import yaml



# 掘金账户的 token
#gm_token = "15bd09a572bff415a52b60001504f0a2dc*****"
#
## 股票账户和期货账户（仿真或实盘必须指定账户id）
#share_account_id = "96a0e4dc-1825-11eb-ac43-*****"   # 股票账户ID
#future_account_id = "81b1ce41-27aa-11eb-96a1-****"  # 期货账户ID

# 企业微信群聊机器人（需要实时消息通知的必须设置）
wx_token = "2daec96b-f3f1-4f83-818b-*******"


data_path = os.path.expanduser("~/trader/gm/")


gm_yaml = os.path.expanduser("~/.config/gm.yaml")
with open(gm_yaml, "r") as f:
    yaml_info = yaml.load(f,  Loader=yaml.FullLoader)

    gm_token = yaml_info['gm_token']
    share_account_id = yaml_info['share_account_id']
    future_account_id = yaml_info['future_account_id']
